from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from flask import session
# 将redis（k，v格式）和session链接起来，及session的那个乱码为k，设置的session配置信息为v
# 将session的内容放在redis，而session中存放redis中的k，原本存放的k，v相当于redis中的v
from flask_session import Session
from info import create_app,db,models


app = create_app("development")
manager = Manager(app)
Migrate(app,db)
manager.add_command("db",MigrateCommand)




if __name__ == '__main__':
    manager.run()
